<template>
	<cover-view class="comReward">
		<cover-image src="https://siha.vxmeng.com/static/component/receive-gif.gif" mode="widthFix"></cover-image>
	</cover-view>
</template>

<script>
	export default {
		name: "comReward",
		props: {
			value: {
				type: String,
				default: "",
			}
		},
		data() {
			return {
				getValue: '',
			};
		},
		mounted() {
			uni.getSystemInfo({
				success: (res) => {  
					if (res.windowWidth > res.windowHeight) {  
						setTimeout(()=>{
							if(this.$music.bgmInstance){
								this.$music.bgmInstance.destroy();
								this.$music.bgmInstance = null;
							}
						}, 0)
					}
				}  
			})
			
			this.getValue = this.value
		},
		methods: {
			comfirm() {
				this.$emit('comfirm')
			},
			
		}
	}
</script>

<style scoped lang="less">
.comReward{
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, .6);
	&>image,&>cover-image{
		width: 100%;
	}
}
</style>